package com.alibaba.org.service.impl;

import com.alibaba.org.BaseTest;
import com.alibaba.system.domain.DictionaryDetail;
import com.alibaba.system.domain.DictionaryType;
import com.alibaba.system.service.DictionaryDetailService;
import com.alibaba.system.service.DictionaryTypeService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class test1 extends BaseTest {
    @Autowired
    private DictionaryDetailService DictionaryDetailService;
    @Autowired
    private DictionaryTypeService DictionaryTypeService;
    @Test
    public void test01() throws Exception{
        List<DictionaryDetail> all = DictionaryDetailService.findAll();
        all.forEach(System.out::println);
    }
    @Test
    public void test02() throws Exception{
        List<DictionaryType> all = DictionaryTypeService.findAll();
        all.forEach(System.out::println);
    }
    @Test
    public void test03() throws Exception{
        List<DictionaryType> byDetail = DictionaryTypeService.findByDetail(1L);
        byDetail.forEach(System.out::println);
    }
}
